package open.tech.dawn.rest.module.system.entity;

import lombok.Data;
import open.tech.dawn.core.base.BaseDto;
import open.tech.dawn.core.base.DtoEmptyValid;

@Data
public class SysConfigDto extends BaseDto {

    private String id;

    @DtoEmptyValid(message = "配置名称为空")
    private String name;

    /**
     * 配置编码
     */
    @DtoEmptyValid(message = "配置编码为空", rule = "[a-zA-Z0-9\\-\\_]+", ruleMessage = "属性代码不符合规则，请填写英文大小、-、_和数字")
    private String code;

    /**
     * 内容
     */
    @DtoEmptyValid(message = "配置内容为空")
    private String value;

}
